import request from '@/utils/requestExam'

// 根据条件查询通用能力表
export function searchByPage(query){
  return request({
    url: "/api/uf/boostor/exam/assess/ExamGeneralAbilityRest/searchByPage/v1",
    method: "post",
    data: query
  })
}

// 根据id查询通用能力表
export function getGeneralAbilityById(id){
  return request({
    url: "/api/uf/boostor/exam/assess/ExamGeneralAbilityRest/getGeneralAbilityById/" + id,
    method: "post"
  })
}

// 新增通用能力表
export function insertGeneralAbility(data){
  return request({
    url: "/api/uf/boostor/exam/assess/ExamGeneralAbilityRest/add/v1",
    method: "post",
    data: data
  })
}

// 更新通用能力表
export function updateGeneralAbility(data){
  return request({
    url: "/api/uf/boostor/exam/assess/ExamGeneralAbilityRest/edit/v1",
    method: "put",
    data: data
  })
}

// 删除通用能力表
export function deleteGeneralAbility(id){
  return request({
    url: "/api/uf/boostor/exam/assess/ExamGeneralAbilityRest/remove/" + id,
    method: "delete"
  })
}